using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.Reflection;

using Entities;

namespace Bll
{
    public class AssemblyLoader
    {
        public static object Load(string csFileName)
        {
            string nameSpace = ConfigurationManager.AppSettings["APPDAL"];
            string className = nameSpace + "." + csFileName;
            Assembly asem = Assembly.Load(nameSpace);
            object interfaceName = asem.CreateInstance(className);
            return interfaceName;
        }
    }
}
